package com.lx.spring.jdbc.Action;


import com.lx.spring.jdbc.dao.OperCordDao;
import com.lx.spring.jdbc.entity.OperCord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

@RestController
public class OperCordAction {

    @Autowired
    OperCordDao oDao;

    @RequestMapping("queryByAid")
    public List<OperCord> queryByAid(HttpServletRequest req){
        String id = req.getParameter("id");
        return oDao.queryBiAid(Long.valueOf(id));

    }
}
